package com.roy.feign;

import java.util.List;

import com.roy.eureka.api.dto.User;

import feign.Headers;
import feign.Param;
import feign.QueryMap;
import feign.RequestLine;

public interface IUserService {

	@RequestLine(value = "GET /user/hello")
	public String hello();
	
	@RequestLine(value="GET /user/getStringInfo?test={test}")
	public String getStringInfo(@Param("test") String test);
	
	@RequestLine(value="POST /user/getOneUser")
	@Headers("Content-Type: application/json")
	public User getOneUser(User user);
	
	@RequestLine(value="POST /user/getUser?i={count}")
	public List<User> getUsers(@Param("count") int count);
}
